package com.eurabia.eggchat.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.eurabia.eggchat.pojo.SysEggchatPost;
import com.eurabia.eggchat.pojo.form.SysEggchatPostForm;
import com.eurabia.eggchat.pojo.query.SysEggchatPostQuery;

/**
 * SysEggchatPostDao 
 */
@Mapper
public interface SysEggchatPostDao {
    
    /**
     * 查询 SysEggchatPost
     */
    List<SysEggchatPost> find(final SysEggchatPostQuery query);

    /**
     * 通过id得到一个 SysEggchatPost
     */
    SysEggchatPost get(final String id);
    
    /**
     * 新增 SysEggchatPost
     */
    void add(final SysEggchatPostForm form);

    /**
     * 修改 SysEggchatPost
     */
    int update(final SysEggchatPostForm form);
    
    /**
     * 删除一个 SysEggchatPost
     */
    int delete(final String id);
    
    /**
     * 修改是否可用
     */
    int changeEnabled(@Param("id") final String id, @Param("enabled") final Integer enabled);
}